package com.example.administrator.meishi.utils;

import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.VideoView;

import com.example.administrator.meishi.R;

import java.io.Serializable;

public class Activityshow extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_activityshow);
        Intent intent=getIntent();
        String url =intent.getStringExtra("url");
        VideoView v = (VideoView) findViewById(R.id.video_v);
        v.setVideoURI(Uri.parse(url));
        v.start();

    }
}
